package com.demo.datastructure.reorder.sortExercise;

/**
 * @author ljr
 * @version 1.0
 * @description: TODO
 * @date 2021/9/18 11:02
 */
public class Transcation implements Comparable<Transcation>{

    private final double amout;

    @Override
    public int compareTo(Transcation o) {
       return Double.compare(amout, o.amout);
    }

    public Transcation(double amout) {
        this.amout = amout;
    }


}
